#include <BAESoundObject.h>

BAESoundObject::BAESoundObject(){
};

BAESoundObject::BAESoundObject(AudioDevicePtr &device, char p[]){
	sound = OutputStreamPtr(OpenSound(device, p, false));
};

void BAESoundObject::play(){
	sound->play();
};
void BAESoundObject::stop(){
	sound->stop();
};

bool BAESoundObject::isPlaying(){
	return( sound->isPlaying() );
};

void BAESoundObject::reset(){
	sound->reset();	
};

void BAESoundObject::setRepeat(const bool &b){	
	sound->setRepeat(b);
};

bool BAESoundObject::getRepeat(){
	return( sound->getRepeat() );
};

void BAESoundObject::setVolume(const float &v){
	sound->setVolume(v);
};

float BAESoundObject::getVolume(){
	return( sound->getVolume() );
};

void BAESoundObject::setPitchShift(const float &s){
	sound->setPitchShift(s);
};

float BAESoundObject::getPitchShift(){
	return( sound->getPitchShift() );
};


void BAESoundObject::setPan(const float &p){
	sound->setPan(p);
};

float BAESoundObject::getPan(){
	return( sound->getPan() );
};